﻿using System.Collections.Generic;
using MagicKey.Components.UserManager;

namespace MagicKey.Interfaces
{
    public interface IDatabase
    {
        string LoadAllEntries();
        bool InsertUser(string username, string password, string salt, string puKey, string prKey, int idUserRole);

        bool InsertFile(string path, int userId);

        bool InsertAuthorization(int sender, int recipient, int file);

        bool RemoveAuthorization(int userId);

        bool DeleteFile(string path, int userId);

        string LoadParameterUser(string type, string username);

        List<User> LoadAllUsers();

        string GetUserId(string username, string password);

        int GetFileId(string path);

        bool HasAuthorization(int userId, string path);

        string GetOwnerName(string path);
    }
}